//
//  QQUtils.swift
//  NewNGPlay
//
//  Created by YMac on 2018/1/2.
//  Copyright © 2018年 zchd. All rights reserved.
//

open class YQQUtils{
    open class func openQQ(vc:YUIViewController, _ qq:String){
        UIApplication.shared.openURL(URL(string: "mqq://im/chat?chat_type=wpa&uin=\(qq)&version=1&src_type=web")!)
//        vc.yRunOnUIThread {
//            let url = URL(string: "mqq://im/chat?chat_type=wpa&uin=\(qq)&version=1&src_type=web")!
//            if YDeviceUtils.getDeviceVersion() < 10.0 {
//                let webView = UIWebView(frame: .zero)
//                webView.loadRequest(URLRequest(url: url))
//                vc.view.addSubview(webView)
//            }else{
//                UIApplication.shared.openURL(url)
//            }
//        }
    }
}
